package com.java.jvm;

import java.util.Arrays;

public class TestMethodStack01 {

	static void doMethod02(){
		System.out.println("doMethod02");
		//throw new RuntimeException();
		Thread t=Thread.currentThread();
		StackTraceElement[] ste=
	    t.getStackTrace();
		System.out.println(Arrays.toString(ste));
		
	}
	static void doMethod01(){
		System.out.println("doMethod01");
		doMethod02();
	}
	public static void main(String[] args) {
		System.out.println("main");
		doMethod01();
	}
}
